package org.hepeng.couchdb.demo;

import org.junit.Test;
import org.lightcouch.CouchDbClient;

/**
 * author he peng
 * date 2022/4/26 0:07
 */
public class LightcouchTest {

    private static final CouchDbClient COUCH_DB_CLIENT = new CouchDbClient();


    @Test
    public void viewTest1() {
        long count = COUCH_DB_CLIENT.view("_design/view1")
                .reduce(true)
                .queryForLong();

        System.out.println(count);
    }
}
